<template>
    <div class="center">
        <div>
            <slot>默认值</slot>
        </div>
    </div>
</template>


<style scoped>
    .center div{
        position: fixed;
        left: 50%;
        top: 50%;
        transform: translate(-50%,-50%);
    }
</style>